package com.aichongbang.acb.mapper;

import com.aichongbang.acb.po.ServiceOrder;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author acb
 * @since 2021-05-27
 */
@Repository("serviceOrderMapper")
public interface ServiceOrderMapper extends BaseMapper<ServiceOrder> {

    @ResultMap("getAllServiceOrders")
    List<ServiceOrder> getAllServiceOrders();

    @ResultMap("queryServiceOrders")
    List<ServiceOrder> queryServiceOrders(ServiceOrder serviceOrder);

    @ResultMap("getServiceOrderById")
    ServiceOrder getServiceOrderById(@Param("tId") Integer tId);

}
